package com.cisdi.blog.service;

import com.cisdi.blog.entity.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author pengyangyan
 * @version 1.0.0
 * @date 2020年03月19日 16:37:00
 */
public interface TypeService {

    Type saveType(Type type);

    Type getType(Long id);

    Page<Type> listType(Pageable pageable);

    List<Type> listType();

    List<Type> hotType(Integer size);

    Type updateType(Long id,Type type);

    void removeType(Long id);

    Type findTypeByName(String name);
}
